package com.crm.service.impl;

import com.crm.dao.OrderDao;
import com.crm.entity.Order;
import com.crm.service.OrderService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * 订单Service实现
 *
 * @author 高旭
 * @date 2020-12-25
 */
@Service("orderService")
public class OrderServiceImpl implements OrderService {

    @Resource
    private OrderDao orderDao;

    @Override
    public List<Order> find(Map<String, Object> map) {
        return orderDao.find(map);
    }

    @Override
    public Long getTotal(Map<String, Object> map) {
        return orderDao.getTotal(map);
    }

    @Override
    public Order findById(Integer id) {
        return orderDao.findById(id);
    }


}
